package com.younion.vo;

import cpcns.component.common.base.BaseVO;
import cpcns.persister.converter.IDomainObject;
import cpcns.persister.service.CompositeID;


 
public class ProductVO extends BaseVO implements IDomainObject,Cloneable{

	/**  */
	private static final long serialVersionUID = -1L;

	 
	private Integer id;

	 
	private String code;

 
	private String name;

	 
	private Double price;

 
	private Integer point;

 
	private String logo;

 
	private String remark;

 
	private String description;
	
	private CustomerVO customerVO;
	
	private ProductKindVO productKindVO;
	
	private Integer customerId;
	private String customerName;

	/**
	 * 
	 */
	public ProductVO() {
	}

	/** 
	 * @return the id
	 */ 
	public Integer getId() {
		return id;
	}

	/** 
	 * @param id the id to set 
	 */ 
	public void setId(Integer id) {
		this.id = id;
	}

	/** 
	 * @return the code
	 */ 
	public String getCode() {
		return code;
	}

	/** 
	 * @param code the code to set 
	 */ 
	public void setCode(String code) {
		this.code = code;
	}

	/** 
	 * @return the name
	 */ 
	public String getName() {
		return name;
	}

	/** 
	 * @param name the name to set 
	 */ 
	public void setName(String name) {
		this.name = name;
	}

	/** 
	 * @return the price
	 */ 
	public Double getPrice() {
		return price;
	}

	/** 
	 * @param price the price to set 
	 */ 
	public void setPrice(Double price) {
		this.price = price;
	}

	/** 
	 * @return the point
	 */ 

	/** 
	 * @return the logo
	 */ 
	public String getLogo() {
		return logo;
	}
	/** 
	 * @param logo the logo to set 
	 */ 
	public void setLogo(String logo) {
		this.logo = logo;
	}

	/** 
	 * @return the remark
	 */ 
	public String getRemark() {
		return remark;
	}

	/** 
	 * @param remark the remark to set 
	 */ 
	public void setRemark(String remark) {
		this.remark = remark;
	}

	/** 
	 * @return the description
	 */ 
	public String getDescription() {
		return description==null?"":description;
	}

	/** 
	 * @param description the description to set 
	 */ 
	public void setDescription(String description) {
		this.description = description;
	}
	
	public ProductVO(Integer id){
		this.id = id;
	}


	public CompositeID getCompositeID(){
		CompositeID _id = super.getCompositeID();
		_id.clear();
		if(id != null){
			_id.addKey("id", id);
		}
		return _id;
	}

	public Integer getPoint() {
		return point;
	}

	public void setPoint(Integer point) {
		this.point = point;
	}

	public CustomerVO getCustomerVO() {
		return customerVO;
	}

	public void setCustomerVO(CustomerVO customerVO) {
		this.customerVO = customerVO;
	}

	public ProductKindVO getProductKindVO() {
		return productKindVO;
	}

	public void setProductKindVO(ProductKindVO productKindVO) {
		this.productKindVO = productKindVO;
	}

	public Integer getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

}
